"""test3 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url,include
from . import views

urlpatterns = [
    url(r'^$',views.index,name='index'),
    # url(r'^(?P<p1>\d+)/', views.index, name='index'),
    url(r'^getTest1/', views.getTest1, name='gettest1'),
    url(r'^getTest2/', views.getTest2, name='gettest2'),
    url(r'^getTest3/', views.getTest3, name='gettest3'),

    url(r'^posttest1/$', views.postTest1, name='postTest1'),
    url(r'^posttest2/$', views.postTest2, name='postTest2'),
    url(r'^cookie/$', views.cookieTest, name='cookieTest'),

    url(r'^redTest1/$', views.redTest1, name='redTest1'),
    url(r'^redTest2/$', views.redTest2, name='redTest2'),

    url(r'^login/$', views.login, name='login'),
    url(r'^logout/$', views.logout, name='logout'),
    url(r'^loginhandle/$', views.login_handle, name='login_handle'),

]
